const assert = require('node:assert');
const realFs = require('node:fs');

const fakeFs = {};
// require.cache.fs = { exports: fakeFs };
Object.defineProperty(require.cache, 'fs', {
  value: { exports: fakeFs },
  writable: true,
});

assert.strictEqual(require('fs'), fakeFs);
assert.strictEqual(require('node:fs'), realFs);
